﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Zatify.Domain.Abstract;
using Zatify.WebUI.Infrastructure.Filters;

namespace Zatify.WebUI.Areas.Admin.Controllers
{
    [ZatifyAdminAuthorizeAttribute]
    [Utils.MyRequireHttps]
    public class ExcelReportsController : Controller
    {
        private IZatifyRepository repository;

        public ExcelReportsController(IZatifyRepository repository)
        {
            this.repository = repository;
        }

        public ActionResult UsersReport()
        {
            return View(repository.Users);
        }

        public ActionResult SystemUsersReport()
        {
            return View(repository.SystemUsers);
        }

        public ActionResult BusinessesReport()
        {
            return View(repository.Businesses);
        }
    }
}
